<template>
  <div></div>
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router'
const route = useRoute()
// router是执行跳转的 route是路由信息,路由信息就包括了所有的跳转传参
</script>
<script lang="ts">
export default {
  name: 'homePage'
}
</script>

<style scoped>
div{
  background: url(https://ts1.cn.mm.bing.net/th/id/R-C.993476357bbabd5cbdb94ccbd50c87a7?rik=2V9IZm4zlrcgPw&riu=http%3a%2f%2fwww.hinews.cn%2fpic%2f0%2f18%2f01%2f34%2f18013460_301908.jpg&ehk=jYKh7xz2%2fos0BQea1%2bP92eBFSKncYCYwKKnmA%2fpzudI%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1
);
}</style>
